/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Race American Indian Pomo</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S15257 (C-0-T14914-S14915-S14916-S15257-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getRaceAmericanIndianPomo()
 * @model extendedMetaData="name='RaceAmericanIndianPomo'"
 * @generated
 */
public enum RaceAmericanIndianPomo implements Enumerator {
	/**
	 * The '<em><b>14647</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_14647_VALUE
	 * @generated
	 * @ordered
	 */
	_14647(0, "_14647", "1464-7"),

	/**
	 * The '<em><b>14654</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_14654_VALUE
	 * @generated
	 * @ordered
	 */
	_14654(1, "_14654", "1465-4"),

	/**
	 * The '<em><b>14662</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_14662_VALUE
	 * @generated
	 * @ordered
	 */
	_14662(2, "_14662", "1466-2"),

	/**
	 * The '<em><b>14670</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_14670_VALUE
	 * @generated
	 * @ordered
	 */
	_14670(3, "_14670", "1467-0"),

	/**
	 * The '<em><b>14688</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_14688_VALUE
	 * @generated
	 * @ordered
	 */
	_14688(4, "_14688", "1468-8"),

	/**
	 * The '<em><b>14696</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_14696_VALUE
	 * @generated
	 * @ordered
	 */
	_14696(5, "_14696", "1469-6"),

	/**
	 * The '<em><b>14704</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_14704_VALUE
	 * @generated
	 * @ordered
	 */
	_14704(6, "_14704", "1470-4"),

	/**
	 * The '<em><b>14712</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_14712_VALUE
	 * @generated
	 * @ordered
	 */
	_14712(7, "_14712", "1471-2"),

	/**
	 * The '<em><b>14720</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_14720_VALUE
	 * @generated
	 * @ordered
	 */
	_14720(8, "_14720", "1472-0");

	/**
	 * The '<em><b>14647</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>14647</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_14647
	 * @model literal="1464-7"
	 * @generated
	 * @ordered
	 */
	public static final int _14647_VALUE = 0;

	/**
	 * The '<em><b>14654</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>14654</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_14654
	 * @model literal="1465-4"
	 * @generated
	 * @ordered
	 */
	public static final int _14654_VALUE = 1;

	/**
	 * The '<em><b>14662</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>14662</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_14662
	 * @model literal="1466-2"
	 * @generated
	 * @ordered
	 */
	public static final int _14662_VALUE = 2;

	/**
	 * The '<em><b>14670</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>14670</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_14670
	 * @model literal="1467-0"
	 * @generated
	 * @ordered
	 */
	public static final int _14670_VALUE = 3;

	/**
	 * The '<em><b>14688</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>14688</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_14688
	 * @model literal="1468-8"
	 * @generated
	 * @ordered
	 */
	public static final int _14688_VALUE = 4;

	/**
	 * The '<em><b>14696</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>14696</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_14696
	 * @model literal="1469-6"
	 * @generated
	 * @ordered
	 */
	public static final int _14696_VALUE = 5;

	/**
	 * The '<em><b>14704</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>14704</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_14704
	 * @model literal="1470-4"
	 * @generated
	 * @ordered
	 */
	public static final int _14704_VALUE = 6;

	/**
	 * The '<em><b>14712</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>14712</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_14712
	 * @model literal="1471-2"
	 * @generated
	 * @ordered
	 */
	public static final int _14712_VALUE = 7;

	/**
	 * The '<em><b>14720</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>14720</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_14720
	 * @model literal="1472-0"
	 * @generated
	 * @ordered
	 */
	public static final int _14720_VALUE = 8;

	/**
	 * An array of all the '<em><b>Race American Indian Pomo</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final RaceAmericanIndianPomo[] VALUES_ARRAY =
		new RaceAmericanIndianPomo[] {
			_14647,
			_14654,
			_14662,
			_14670,
			_14688,
			_14696,
			_14704,
			_14712,
			_14720,
		};

	/**
	 * A public read-only list of all the '<em><b>Race American Indian Pomo</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<RaceAmericanIndianPomo> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Race American Indian Pomo</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianPomo get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAmericanIndianPomo result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race American Indian Pomo</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianPomo getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAmericanIndianPomo result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race American Indian Pomo</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianPomo get(int value) {
		switch (value) {
			case _14647_VALUE: return _14647;
			case _14654_VALUE: return _14654;
			case _14662_VALUE: return _14662;
			case _14670_VALUE: return _14670;
			case _14688_VALUE: return _14688;
			case _14696_VALUE: return _14696;
			case _14704_VALUE: return _14704;
			case _14712_VALUE: return _14712;
			case _14720_VALUE: return _14720;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private RaceAmericanIndianPomo(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //RaceAmericanIndianPomo
